﻿<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" import="java.util.*"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ request.getContextPath() + "/";
//response.sendRedirect("common/login");
%>
<c:set var="path" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>金融机构_湖南省金融服务平台</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=9;IE=8;IE=7;"/>
    <link href="${path }/resource/css/finance/style.css" rel="stylesheet" media="screen">
    <link href="${path }/resource/css/finance/common.css" rel="stylesheet">
    <link href="${path }/resource/css/finance/page.css" rel="stylesheet">
    <script src="${path }/resource/js/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="${path }/resource/js/mytools.js"></script>
    <script type="text/javascript" src="${path }/resource/layer/layer.js"></script>
    <style type="text/css">
        .subjg {
            background: url(/images/icon-dian02.jpg) 10px 10px no-repeat;
            padding-left: 20px;
        }
    </style>

</head>
<body>
<div class="wrap">
    
<div class="head">
    
    
    <div class="top_r">
        <p>
            <span id="Head_lbLogin"></span><a href="login">工作人员登录</a>
        </p>
    </div>
    <div class="clear"></div>
</div>
<div id="gNavi">
    <ul class="clearfix" id="dvGuider">
        <li class="on">
            <a href="#">网站首页</a>
        </li>
        <li>
            <a href="#">金融动态</a>
        </li>
        <li>
            <a href="#">项目信息</a>
        </li>
        <li>
            
            <a href="FinanceOrgHome">资金信息</a>
        </li>
        <li>
            <a href="#">专家信息</a>
        </li>
        <li>
            <a href="#">成果信息</a>
        </li>
        <li>
            <a href="#">招聘信息</a>
        </li>
        <li>
            <a href="#">行情中心</a>
        </li>
    </ul>
</div>
    <div class="main">
        <div class="fl brand mt18">
            <p>您所在的位置：</p>
            <a href="/">首页</a><span>-</span><a href="FinanceOrgHome">金融机构</a><span>-</span><a>全部</a>
        </div>
        <div class="content">
                <!-- <div class="bicolumn"> -->
                      <label>机构类型：</label>
                         <!--显示的值，value值 ，请求数据地址，默认选择-->
						<select id="autoselect"
								data-show="dicValue" 
								data-value="dicValue" 
								data-url="${path}/common/Dictionary/showSelect?dicType=orgType" 
								data-def="${obj.orgType}"  
								name="orgType" onchange="toSearch()">
						</select>
						<label >所在区域：</label>
						  <!--显示的值，value值 ，请求数据地址，默认选择-->
						<select id="autoselect2"
								data-show="dicValue" 
								data-value="dicValue" 
								data-url="${path}/common/Dictionary/showSelect?dicType=area" 
								data-def="${obj.area}"  
								name="area" >
						</select>
                <!-- </div> -->
                <div class="layout pt10">
                    <div class="colMain">
                        <div class="filter clearfix">
                            <ul class="infoShow">
                                <li class="select">
                                    <span><i class="icoInfo"></i>金融机构-全部 (${sum})</span>
                                </li>
                            </ul>
                            <span class="searchBox">
                                    <input name="tbName" type="text" id="tbName" class="text" style="color: #999; padding: 0 5px; width: 250px;" value="关键字" onfocus="if(this.value==&#39;关键字&#39;){this.value=&#39;&#39;;}" onblur="if(this.value==&#39;&#39;){this.value=&#39;关键字&#39;;}" />&nbsp;&nbsp;&nbsp;
                                    <a onclick="javascript:return CheckSubmit();" id="btn_Searh" class="searchBtn" href="javascript:__doPostBack(&#39;btn_Searh&#39;,&#39;&#39;)">&nbsp;&nbsp;&nbsp;查 询&nbsp;&nbsp;&nbsp;</a>
                                </span>
                        </div>
                        <div class="infoItem clearfix" style="margin-bottom:5px; padding: 0px;">
                            <div class="infoItem-box2">
                                <div class="title">
                                        <span id="span_AreaInfo">${obj.area}${obj.zone}</span>
                                </div>
         <div id="tablediv">
			<table id="table1" class="table table-bordered table-hover table-condensed">
				<thead id="thead">
					<tr>
						<th data-name = "orgName">机构名称</th>  
						<th data-name = "regAddr">地址</th>  
						<th data-name = "regMoney">注册资本</th>  
						<th data-name = "upDate" data-format="mytooljs.getTimeDD">成立日期</th>
						<th data-name = "id" data-format="operation" >查看</th>   
					</tr>
				</thead>
			</table>
		</div>
           </div>
          </div>
         </div>
                </div>
        </div>
    </div>
</div>
 <script type="text/javascript">
 	var area ='${obj.area}';
 	var zone ='${obj.zone}';
 	var orgType='${obj.orgType}';
    function toSearch(){
    	var orgType = 	encodeURI($("#autoselect").val());
    	var area = encodeURI($("#autoselect2").val());
    	window.location.href = "${path}/common/FinanceOrgHome?orgType="+orgType+"&area="+area;
    }
    var ms=mytooljs.initSelect({
    	idSelecter:"#autoselect" //下拉框选择器
    	});
    var ms=mytooljs.initSelect({
    	idSelecter:"#autoselect2" //下拉框选择器
    	});
    
    //拿到area和zone
    var url = "${path}/common/showFinanceOrgList?area="+area+"&zone="+zone+"&orgType="+orgType;
    var mjs =	mytooljs.initTable({
		idSelecter:"#table1",
		sendurl: url, //求数据的地址
		pagesize:5,//分页大小
		editUrl:"${path}/common/FinanceOrgDetail", //打开详情页面
		windowSize:{'X':'100%','Y':'100%'},
		});
  	//状态
	function operation(id){
		var	html="";
		html+="<a href='${path}/common/FinanceOrgDetail?id="+id+"'>详情</a>";
		/* html+="<input type='button' value='查看🔍' class='btn btn-default btn-sm' onclick='mjs.editFrom("+id+")' />"; */
		return html;
	}
    </script>
</body>
</html>